package xyz.lne.researchgroupmanage.controller.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import xyz.lne.researchgroupmanage.service.TaskService;
import xyz.lne.researchgroupmanage.service.dataTransferObject.TaskDetailDTO;

import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

/**
 * Designed By Lne.
 * 2021/1/22 11:41
 * 具体展示某个任务使用
 */
@Data
public class TaskDetailResponse {
    private Integer taskId;
    private String taskName;
    private Integer releaseUserId;
    private String releaseUserName;
    private String taskIntroduction;
    private Integer researchId;
    private String researchName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private Integer  accomplishedUsersNum;
    private Integer participatedUsersNum;

    List<UserCommitTaskResponse> userCommitTaskResponseList;

}
